<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<!-- saved from url=(0051)http://web.hand999.com/daili_mobile/agentcharge.php -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>商户管理系统</title>
<meta name="Keywords" content="">
<meta name="Description" content="">

<meta http-equiv="Cache-Control" content="no-cache">
<meta name="MobileOptimized" content="240">

<meta content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport">        
<!-- Mobile Devices Support @begin -->
  
  <meta content="no-cache,must-revalidate" http-equiv="Cache-Control">
  <meta content="no-cache" http-equiv="pragma">
  <meta content="0" http-equiv="expires">
  <meta content="telephone=no, address=no" name="format-detection">
  <meta name="apple-mobile-web-app-capable" content="yes"> <!-- apple devices fullscreen -->
  <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<!-- Mobile Devices Support @end -->
<link rel="stylesheet" type="text/css" href="/admin/agent_admin/Public/home/css/public.css" media="all">
<link rel="stylesheet" type="text/css" href="/admin/agent_admin/Public/home/css/style.css" media="all">
<script src="/admin/agent_admin/Public/home/js/jquery-2.1.0.min.js.下载"></script>
<script src="/admin/agent_admin/Public/home/js/My97DatePicker/WdatePicker.js"></script>
</head>

<body class="body" style="font-size:13px;">
	<div class="page_top_box">
    <center>
        <div class="page_top">
            <a href="<?php echo U('Index/indexx') ?>" class="back"><img src="/admin/agent_admin/Public/home/images/ico_back.png"></a>
            <!-- <a id="seabtn" href="javascript:void(0)" class="sear"><img src="/admin/agent_admin/Public/home/images/ico_search.png"></a> -->
            <div class="pg_name" onclick="location.reload()"><?php  if($_GET['accounts']==""){echo '代理买钻记录';}else{ echo $_GET['accounts'].'代理买钻记录'; } ?></div>
        </div>
    </center>
    </div>
     <form id="myform" name="form1" method="post" action="">  

	<div class="sousuo" style="">
			<dl class="sou" style="width:26%;height:50px;margin-top:2%;float:left">
				账号：<input style="width:50%;height:40%;border-radius:7px" type="" name="accounts" placeholder="">
			</dl>
			<dl class="sou" style="width:24%;height:50px;margin-top:2%;float:left;">
				姓名<input style="width:50%;height:40%;border-radius:7px" type="" name="username" placeholder="">
			</dl>
			<dl class="sou"  style="width:28%;height:50px;margin-top:2%;float:left;">
				<b style="width:30%;">排序：</b>
				<select name="type">
					<option value="1" >账号</option>
					<option value="2">时间</option>
					<option value="0" selected="selected">默认</option>
				</select>
			</dl>
			<input style="width:15%;height:25px;margin-top:2%;margin-left:20px;border-radius:9px;background:##666699;color:#000;line-height:2px;" type="submit" name="soso" value="搜索" class="btn">
						<div class="datetme" style="float:left;width:160%">
				日期搜索
				<input type="text" class="Wdate" name="sdate" onFocus="WdatePicker({lang:'zh-cn',dateFmt:'yyyy-MM-dd HH:mm:ss ',readOnly:true})" style="width:20%;height:18px;margin-top:6px;font-size:1px;"/>
					--
					<input type="text" class="Wdate" name="edate" onFocus="WdatePicker({lang:'zh-cn',dateFmt:'yyyy-MM-dd HH:mm:ss ',readOnly:true})" style="width:20%;height:18px;margin-top:6px;font-size:1px;"/>
				
				
		</div>
		</div>
		</form>
    <dl class="user_list">
    	<dt style="width:12%">标号</dt>
    	<dt style="width:20%">下级代理ID</dt>
		<dt style="width:20%">方式</dt>
		<dt style="width:20%">数量</dt>
		<dt style="width:20%">时间</dt>
    </dl>
	<?php  foreach ($sql as $k=>$v) { ?>
	
    <dl id="ulist" class="user_list">
	
		<!-- 此处时间为注册时间  改为充值时间  还需改正 -->	
		<dd style="width:12%"><?php echo $k+1 ?></dd>
		<dd style="width:20%;line-height:40px;" class="d"><?php echo $v['recipient'] ?></dd>
		<dd style="width:20%"><?php if($v['manner']==1){echo '购买';} if($v['manner']==2){echo '赠送';} ?></dd> 
		<dd style="width:20%"><?php echo $v['gems'] ?></dd>
		<dd style="width:20%;line-height:22px;font-size:0.6em;"><?php echo $v['regtime']; ?></dd>
		   
	</dl>
	<?php } ?>
    <div id="" smore="" class="list_more" onclick="showMore()">加载更多</div>
    <input id="cpage" name="cpage" type="hidden" value="1">
    
    <div class="pg_foot_box">
<center>
    <div class="pg_foot">
        <a href="<?php echo U('Index/indexx') ?>">商户管理平台</a>
    </div>
</center>
</div>    
     <div id="hintbox" class="hint_box">
        <span id="hintmsg"></span>
    </div> 
    
    <script src="/admin/agent_admin/Public/home/js/mui.min.js.下载"></script>
	<script src="/admin/agent_admin/Public/home/js/mui.picker.min.js.下载"></script>  
    <script type="text/javascript">
		$("#seabtn").click(function(){
			$("#seabox").slideToggle();
		});
		
		function goSearch(){
			if($("#sdate").val() == "" && $("#edate").val() == ""){
				hintPop("请输入开始和结束日期！"); return false;
			}
			
			window.location.href="?sdate=" + $("#sdate").val() + "&edate=" + $("#edate").val();
		}
		
		function hintPop(msg){
			$("#hintmsg").html(msg);
			$("#hintbox").css({"opacity": "1", "display": "block"});
			$("#hintbox").animate({"bottom":"80px"}, "last", function(){
				setTimeout(function(){
					$("#hintbox").animate({"opacity": "0"}, "last", function(){
						$("#hintbox").css({"bottom":"0px", "display": "none"});
					});
				}, 2000);
			});
		}
		
		function showMore(){
			var total = Number("1");
			var cpage = Number($("#cpage").val());
			if(cpage >= total){
				hintPop("没有更多充值记录了"); return false;
			}else{
				$.ajax({
					type: "get",
					url: "prog.php?ac=ajax.class&do=agentchange",
					data: {"pset": "15","cpage": cpage, "sdate":"0", "edate":"1482823357"},
					success: function (result) {
						$("#ulist").append(result);
						$("#cpage").val(cpage + 1);
						
					}
				});
			}
		}
		
		(function($) {
			$.init();
			var result = $('#result')[0];
			var btns = $('.picker');
			btns.each(function(i, btn) {
				btn.addEventListener('tap', function() {
					var optionsJson = this.getAttribute('data-options') || '{}';
					var options = JSON.parse(optionsJson);
					var id = this.getAttribute('id');
		
					var picker = new $.DtPicker(options);
					picker.show(function(rs) {
						
						document.getElementById(id).value = rs.text;
												
						picker.dispose();
					});
				}, false);
			});
		})(mui);
	</script>

</body></html>